package com.ruoyi.merchant.verificationrecord.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.merchant.verificationrecord.mapper.VerificationRecordMapper;
import com.ruoyi.merchant.verificationrecord.domain.VerificationRecord;
import com.ruoyi.merchant.verificationrecord.service.IVerificationRecordService;

/**
 * 核销记录，记录订单核销相关信息Service业务层处理
 * 
 * @author zx
 * @date 2025-09-14
 */
@Service
public class VerificationRecordServiceImpl implements IVerificationRecordService 
{
    @Autowired
    private VerificationRecordMapper verificationRecordMapper;

    /**
     * 查询核销记录，记录订单核销相关信息
     * 
     * @param id 核销记录，记录订单核销相关信息主键
     * @return 核销记录，记录订单核销相关信息
     */
    @Override
    public VerificationRecord selectVerificationRecordById(Integer id)
    {
        return verificationRecordMapper.selectVerificationRecordById(id);
    }

    /**
     * 查询核销记录，记录订单核销相关信息列表
     * 
     * @param verificationRecord 核销记录，记录订单核销相关信息
     * @return 核销记录，记录订单核销相关信息
     */
    @Override
    public List<VerificationRecord> selectVerificationRecordList(VerificationRecord verificationRecord)
    {
        return verificationRecordMapper.selectVerificationRecordList(verificationRecord);
    }

    /**
     * 新增核销记录，记录订单核销相关信息
     * 
     * @param verificationRecord 核销记录，记录订单核销相关信息
     * @return 结果
     */
    @Override
    public int insertVerificationRecord(VerificationRecord verificationRecord)
    {
        return verificationRecordMapper.insertVerificationRecord(verificationRecord);
    }

    /**
     * 修改核销记录，记录订单核销相关信息
     * 
     * @param verificationRecord 核销记录，记录订单核销相关信息
     * @return 结果
     */
    @Override
    public int updateVerificationRecord(VerificationRecord verificationRecord)
    {
        return verificationRecordMapper.updateVerificationRecord(verificationRecord);
    }

    /**
     * 批量删除核销记录，记录订单核销相关信息
     * 
     * @param ids 需要删除的核销记录，记录订单核销相关信息主键
     * @return 结果
     */
    @Override
    public int deleteVerificationRecordByIds(Integer[] ids)
    {
        return verificationRecordMapper.deleteVerificationRecordByIds(ids);
    }

    /**
     * 删除核销记录，记录订单核销相关信息信息
     * 
     * @param id 核销记录，记录订单核销相关信息主键
     * @return 结果
     */
    @Override
    public int deleteVerificationRecordById(Integer id)
    {
        return verificationRecordMapper.deleteVerificationRecordById(id);
    }
}
